import { Column, CreateDateColumn, Entity, JoinTable, ManyToMany, PrimaryGeneratedColumn, Unique, UpdateDateColumn } from 'typeorm'
import { Role } from 'src/modules/role/entities/role.entity'

@Entity({
  name: 'history',
})
export class History {
  @PrimaryGeneratedColumn()
  id: number

  @Column({
    length: 50,
    comment: '用户名',
  })
  username: string

  @Column({
    length: 50,
    comment: '用户IP',
  })
  ip: string

  @Column({
    length: 50,
    comment: '用户主机',
  })
  host: string

  @CreateDateColumn()
  createTime: Date
}
